<%--
  Created by IntelliJ IDEA.
  User: 王文尧
  Date: 2024/7/2
  Time: 22:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <script type="text/javascript">
        <%
            String msg = (String) session.getAttribute("msg");
            session.removeAttribute("msg");
            if (msg != null) {
        %>
        alert("<%=msg%>");
        <%
            }
        %>
    </script>
    <h1>添加学生</h1>
    <form method="post" action="manage">
        <input type="hidden" name="op" value="addStudent"/>
        学号: <input type="text" name="sNo" value="auto" readonly/><br/>
        姓名: <input type="text" name="sName" /><br/>
        密码: <input type="text" name="password" /><br/>
        性别: <input type="text" name="sex" /><br/>
        年龄: <input type="text" name="age" /><br/>
        <input type="submit" value="添加"/>
    </form>
</body>
</html>
